package com.xishu.to.foodpanda;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class FoodPandaCategory extends FoodPandaBase implements Serializable {
    private static final long serialVersionUID = -1354831620246488032L;

    @ApiModelProperty(value = "名称")
    private FoodPandaZhEn title;

    @ApiModelProperty(value = "描述")
    private FoodPandaZhEn description;

    @FoodPandaAnnotation(listToObject = true)
    @ApiModelProperty(value = "哪一个product添加到category里面")
    private List<? extends FoodPandaBase> products;

    @ApiModelProperty(value = "显示顺序")
    private Integer order;

    public FoodPandaCategory() {
        this.type = "Category";
    }
}
